<template>
 <el-container class="homes" :style="screenHeight">
  <el-aside width="20%">


  </el-aside>
  <el-container class="homes_main">
    <el-header width='80%' :style="headerHeight">Header</el-header>
    <el-main width='80%'>Main</el-main>
  </el-container>
</el-container>
</template>

<script>
export default {
  name: 'home',
  data () {
   
    return {
      msg: 'Welcome to Your Vue.js App',
       screenWidth:{
        width: ""
      },
      screenHeight:{
        height:""
      },
      headerHeight:{
        height:""
      }
    }
  },
  mounted () {
    console.log(document.body.clientWidth)
     this.screenWidth.width = document.body.clientWidth + 'px'
     this.screenHeight.height = window.innerHeight + "px";
     this.headerHeight.height = window.innerHeight/8+ "px";
console.log(this.screenHeight)
},
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.homes{
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}
.homes_main{
  width: 100%;
  height: 100%;
}
 .el-header {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
  }
    .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 160px;
  }
</style>
